#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:do_json.py
# author:Jackiex
# datetime:2023/4/24 10:24
# software: PyCharm

"""
this is function  description 
"""

import json

data_dict = {"name": "xxx", "gender": "female"}

print(type(data_dict))

# 对字典进行序列化后，得到str
data_str = json.dumps(data_dict)

print(type(data_str))

print(data_str)

data_dict1 = json.loads(data_str)

print(type(data_dict1))


